import { BasicCard, Toolbar } from '@/components'
import { ToolbarPageProps } from '../PageType'
import '../Page.less'
import './SimplePage.less'
import React from 'react'

interface SimplePageProps extends ToolbarPageProps {
  children?: React.ReactNode
}

/**
 * 简单的页面，包含统一的样式
 */
export const SimplePage = (props: SimplePageProps) => {
  const { toolbar, children } = props
  return (
    <BasicCard className="chunmi-page chunmi-simple-page">
      <Toolbar {...toolbar} />
      {children}
    </BasicCard>
  )
}
